#include "StdAfx.h"
#include "StratumInterp.h"

void GetDrillBoundBox(const CArray2D<glm::vec3>& cDrillData, glm::vec3& stMin, glm::vec3& stMax)
{
	UINT uiDrillCount = cDrillData.GetHeight();
	UINT uiStratumCount = cDrillData.GetWidth();

	stMin = cDrillData[0][0];
	stMax = cDrillData[0][0];

	for(UINT i = 0; i < uiDrillCount; ++i)
	{
		for(UINT j = 0; j < uiStratumCount; ++j)
		{
			stMin = glm::min(cDrillData[i][j], stMin);
			stMax = glm::max(cDrillData[i][j], stMax);
		}
	}

	//stMin.x -= 1000.0f; stMin.y -= 1000.0f;
	//stMax.x += 1000.0f; stMax.y += 1000.0f;
}